const SequelizeRepository = require('../../../shared/repository/SequelizeRepository')

class SystemRepository extends SequelizeRepository {
  constructor({ systemCoverter, database }) {
    super({
      coverter: systemCoverter,
      model: database.models.System,
    })
  }
  async findByCode(code) {
    return this.findOne({ where: { code } })
  }
}

module.exports = SystemRepository
